<!DOCTYPE HTML>
<html>
<head>
    <title>安帮对象走访信息页面</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css"/>
    <script src="/static/js/common/common.js" type="text/javascript"></script>
</head>
<body  onload="onLoad()">
<div class="mini-fit" style="margin-bottom: 45px;width:100%;margin: 0 auto;">
    <form id="form1" method="post" style="padding-top: 10px;">
        <div align="left" style="width: auto;height:auto">
            <b style="font-size: 18px;">&nbsp;&nbsp;&nbsp;&nbsp;走访信息：</b>
        </div>
        <!-- 用户 编辑框START-->
        <div id="editform1" class="form" style="margin-left:-150px" >
            <table>
                <input id="priNum" name="priNum" class="mini-hidden" value="${pid!''}" style="width: 100%;"  readonly/>
                <input id="pid" name="pid" class="mini-hidden" value="${pid!''}" style="width: 100%;"  readonly/>
                <input id="id" name="id" class="mini-hidden" value="${zfId!''}" style="width: 100%;"  readonly/>
                <input id="edit" name="edit" class="mini-hidden" value="${edit!''}" style="width: 100%;"  readonly/>
                <tr>
                    <td style="white-space:nowrap" align="right">姓名:</td>
                    <td>
                        ${prisonerBaseInfo.pname!''}
                    </td>
                </tr>
                <div>
                    <td style="white-space:nowrap" align="right">身份号码:</td>
                    <td>
                        ${prisonerBaseInfo.idnum!''}
                    </td>
                </div>
                <tr>
                    <td  style="line-height: 30px;width:15% " align="right"><font color="#dc143c">*</font>走访时间:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input class="mini-datepicker" style="width: 100%" allowInput="true" value="${zoufangTime!''}" id="zoufangTime" name="zoufangTime" required="true" readonly/>
                    </td>
                </tr>
                <tr>
                    <td   style="line-height: 30px;width:15% " align="right"><font color="#dc143c">*</font>走访人员:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="zoufangPerson" id="zoufangPerson" class="mini-textbox"   value="${zoufangPerson!''}"
                               style="width: 100%" required="true" readonly/></td>
                </tr>
                <tr>
                    <td  style="line-height: 30px;width:15% "align="right"><font color="#dc143c">*</font>走访单位:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="zoufangDanwei" id="zoufangDanwei" class="mini-textbox"   value="${zoufangDanwei!''}"
                               style="width: 100%" required="true" readonly/></td>
                </tr>
                <tr>
                    <td   style="line-height: 30px;width:15% " align="right">联系手机:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="phone" id="phone" class="mini-textbox"   value="${phone!''}"
                               style="width: 100%" emptyText="手机号码" onvaluechanged="checkPhone(2)" readonly/></td>
                </tr>
                <tr>
                    <td  style="line-height: 30px;width:15% " align="right">联系电话:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="telPhone" id="telPhone" class="mini-textbox"   value="${telPhone!''}"
                               style="width: 100%"  emptyText="固定电话(区号-区段号码)" onvaluechanged="checkPhone(1)" readonly/></td>
                </tr>
                <tr>
                    <td   style="line-height: 30px;width:15% " align="right">帮教对象联系电话:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="bjPhone" id="bjPhone" class="mini-textbox"   value="${bjPhone!''}"
                               style="width: 100%" emptyText="手机号码" onvaluechanged="checkPhone(4)" readonly/></td>
                </tr>
                <tr>
                    <td  style="line-height: 30px;width:15% " align="right">帮教对象联系固话:</td>
                    <td style="line-height: 30px;width:20% ">
                        <input name="bjTelPhone" id="bjTelPhone" class="mini-textbox"   value="${bjTelPhone!''}"
                               style="width: 100%"  emptyText="固定电话(区号-区段号码)" onvaluechanged="checkPhone(3)" readonly/></td>
                </tr>
                <tr>
                    <td style="white-space:nowrap" align="right"><font color="#dc143c">*</font>走访内容:</td>
                    <td>
                    <textarea id="zoufangRemark" name="zoufangRemark" style="width: 100%;" class="mini-textarea"
                              emptyText="请输入走访内容" value="${zoufangRemark!''}" readonly></textarea>
                    </td>
                </tr>
            </table>
            <!-- 用户 编辑框START-->
            <div id="fileform" class="form1" style="padding-left:300px">
                <table class="form-table"   width="100%">
                    <tr>
                        <td width="15%" align="right" style="line-height: 40px;">
                            附件下载:
                        </td>
                        <td >
                            <input type="button" value="查看附件" onclick="onFileUpload()"><span  style="color: #8B8B8B" ></span>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    mini.parse();

    var priNumObj = mini.get("priNum");
    var editObj = mini.get("edit");
    var idObj = mini.get("id");
    var form = new mini.Form("form1");
    var phone = mini.get("phone");
    var telPhone = mini.get("telPhone");


    form.setEnabled(false);

    <!-- 上传附件 -->
    function onFileUpload(e) {
        var idval = idObj.getValue();
        if(!idval){
            idval="noid";
        }
        var prival = priNumObj.getValue();
        // 走访附件task= 16
        var taskid = "16";
        var nouploadflag = "5000";
        var url = "/upload/user/uploadAppendixfile/noupload/view?1=1&id="+idval+"&priNum="+prival+"&taskId=" + taskid+"&nouploadflag="+nouploadflag;
        commonEdit(url, null, null,600, 400, true,true,true);
    }
</script>
</body>
</html>